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

     1  ---
     2  summary: Add Space
     3  description: Adds an existing space to the team.
     4  operationId: teams/spaces/create
     5  tags:
     6  - Teams
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/account_id"
    10  - "$ref": "../../parameters.yaml#/team_id"
    11  responses:
    12    '201':
    13      description: Created
    14      headers:
    15        X-Rate-Limit-Limit:
    16          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    17        X-Rate-Limit-Remaining:
    18          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    19        X-Rate-Limit-Reset:
    20          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    21    '400':
    22      "$ref": "../../responses.yaml#/400"
    23    '404':
    24      "$ref": "../../responses.yaml#/404"
    25    '429':
    26      "$ref": "../../responses.yaml#/429"
    27  x-code-samples:
    28  - lang: Curl
    29    source: |-
    30      curl "https://api.phrase.com/v2/accounts/:account_id/teams/:team_id/spaces" \
    31        -u USERNAME_OR_ACCESS_TOKEN \
    32        -X POST \
    33        -d '{"id":"a4b3c2d1"}' \
    34        -H 'Content-Type: application/json'
    35  - lang: CLI v2
    36    source: |-
    37      phrase teams spaces_create \
    38      --account_id <account_id> \
    39      --team_id <team_id> \
    40      --data '{"id":"a4b3c2d1"}' \
    41      --access_token <token>
    42  requestBody:
    43    required: true
    44    content:
    45      application/json:
    46        schema:
    47          type: object
    48          title: teams/spaces/create/parameters
    49          required:
    50            - id
    51          properties:
    52            id:
    53              description: Space ID to add to the Team
    54              type: string
    55              example: a4b3c2d1
    56  x-cli-version: '2.5'