level-track

Replace the org's Level & Track catalog (whole document)

Changed on
put/v1/org/{orgId}/level-track

Request

  • Base URL: https://localhost
  • URL: https://localhost/v1/org/{orgId}/level-track
  • Auth: none declared

Path parameters

orgIdstring required

Org identifier (id or slug)

Request body

Example request

{
  "levels": [
    {
      "rowId": "588f7ee98f138b19220041a7",
      "optionId": "588f7ee98f138b19220041a7",
      "trackId": "588f7ee98f138b19220041a7"
    }
  ],
  "tracks": [
    {
      "id": "588f7ee98f138b19220041a7"
    }
  ]
}

Response

successful operation

idstring required

globally unique id

orgIdstring

parent organization id

revinteger

monotonic revision counter (reserved for optimistic concurrency; not enforced yet)

migratedAtstring

timestamp the org was migrated off the legacy jobLevel model; null until migrated

createIdstring

created by user id

createBehalfIdstring

created on behalf of user id

createAtstring

created timestamp

updateIdstring

last updated by user id

updateBehalfIdstring

last updated on behalf of user id

updateAtstring

last updated timestamp

deleteIdstring

deleted by user id

deleteBehalfIdstring

deleted on behalf of user id

deleteAtstring

deleted timestamp

Example response

{
  "id": "588f7ee98f138b19220041a7",
  "orgId": "588f7ee98f138b19220041a7",
  "tracks": [
    {
      "id": "588f7ee98f138b19220041a7"
    }
  ],
  "levels": [
    {
      "rowId": "588f7ee98f138b19220041a7",
      "optionId": "588f7ee98f138b19220041a7",
      "trackId": "588f7ee98f138b19220041a7"
    }
  ],
  "createId": "588f7ee98f138b19220041a7",
  "createBehalfId": "588f7ee98f138b19220041a7",
  "createAttribution": {
    "principalUserId": "588f7ee98f138b19220041a7",
    "agentUserIds": [
      "588f7ee98f138b19220041a7"
    ],
    "eventId": "588f7ee98f138b19220041a7",
    "aiChatId": "588f7ee98f138b19220041a7"
  },
  "createAt": "2017-01-24T13:57:52Z",
  "updateId": "588f7ee98f138b19220041a7",
  "updateBehalfId": "588f7ee98f138b19220041a7",
  "updateAttribution": {
    "principalUserId": "588f7ee98f138b19220041a7",
    "agentUserIds": [
      "588f7ee98f138b19220041a7"
    ],
    "eventId": "588f7ee98f138b19220041a7",
    "aiChatId": "588f7ee98f138b19220041a7"
  },
  "updateAt": "2017-01-24T13:57:52Z",
  "deleteId": "588f7ee98f138b19220041a7",
  "deleteBehalfId": "588f7ee98f138b19220041a7",
  "deleteAttribution": {
    "principalUserId": "588f7ee98f138b19220041a7",
    "agentUserIds": [
      "588f7ee98f138b19220041a7"
    ],
    "eventId": "588f7ee98f138b19220041a7",
    "aiChatId": "588f7ee98f138b19220041a7"
  },
  "deleteAt": "2017-01-24T13:57:52Z"
}

Changes