github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/jobs/unlock.yaml (about)

     1  ---
     2  summary: Unlock a job
     3  description: If you are the job owner, you may unlock a locked job using this API request.
     4  operationId: job/unlock
     5  tags:
     6  - Jobs
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/id"
    11  - description: specify the branch to use
    12    example: my-feature-branch
    13    name: branch
    14    in: query
    15    schema:
    16      type: string
    17  responses:
    18    '204':
    19      "$ref": "../../responses.yaml#/204"
    20    '400':
    21      "$ref": "../../responses.yaml#/400"
    22    '404':
    23      "$ref": "../../responses.yaml#/404"
    24    '429':
    25      "$ref": "../../responses.yaml#/429"
    26  x-code-samples:
    27  - lang: Curl
    28    source: |-
    29      curl "https://api.phrase.com/v2/projects/:project_id/jobs/:id/unlock" \
    30        -u USERNAME_OR_ACCESS_TOKEN \
    31        -X POST \
    32        -d '{"branch":"my-feature-branch"' \
    33        -H 'Content-Type: application/json'
    34  - lang: CLI v2
    35    source: |-
    36      phrase jobs unlock \
    37      --project_id <project_id> \
    38      --id <id> \
    39      --branch my-feature-branch \
    40      --access_token <token>
    41  x-cli-version: '2.5'