Skip to content
Navigation

Set the playbooks explicitly bound to a space type

Declaratively sets which playbooks are explicitly bound to the space type named in the path. Body: { playbookIds: string[] } — the desired full set of explicitly-bound playbook ids. Each changed playbook has this space type added to / removed from its spaceTypes array; unchanged playbooks are not touched. Playbooks with an EMPTY spaceTypes apply to all space types and are ignored by this endpoint — listing their id has no effect (binding one explicitly would silently restrict it everywhere else). Authorization: organization administrators only — other callers get 403. Returns 404 not_found if the space type does not exist; 400 unknown_playbook if an id matches no playbook. Response: the same annotated list as GET, after the update.

PUT
https://api.cloudraker.com/space-types/{spaceTypeId}/playbooks
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceTypeId
    string
    required

Request body JSON required

  • playbookIds
    array of
    string
    required

    The desired full set of explicitly-bound playbook ids.

    minLength: 1

Returns

200

The annotated playbook list, after the update.

JSON
  • data
    array of
    object
    required
    • id
      string
      required
    • name
      string
      required
    • description
      string
      required
    • status
      draft
      or
      active
      or
      archived
      required
    • spaceTypes
      array of
      string
      required
    • bound
      boolean
      required

      Its spaceTypes explicitly includes this type.

    • global
      boolean
      required

      Its spaceTypes is empty, so it applies everywhere and cannot be unbound here.

400

unknown_playbook — an id matches no playbook definition

404

not_found — the space type does not exist

Type to search…

↑↓ navigate↵ selectEsc close