Task Type Form Assignments
4 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List all form assignments in a space#
GET
/spaces/{spaceId}/task-type-form-assignmentsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Antworten
- 200Assignments returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/task-type-form-assignments" \
-H "Authorization: Bearer $XISUITE_TOKEN"Attach a form to a task type (idempotent)#
POST
/spaces/{spaceId}/task-type-form-assignmentsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
task_type_level_idPflicht | string | Hierarchy level ID or '*' for space-wide default |
form_idPflicht | string | Form to attach |
display_mode | string | Where the form is shown on the task Werte: |
sort_order | number | Display order within the task type |
Antworten
- 201Assignment created or updated
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/task-type-form-assignments" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"task_type_level_id":"*","form_id":"…"}'Detach a form from a task type#
DELETE
/spaces/{spaceId}/task-type-form-assignments/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
idPflicht | Pfad | string | – |
Antworten
- 200Assignment deleted
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/task-type-form-assignments/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Forms for one task type, including the '*' catch-all#
GET
/spaces/{spaceId}/task-type-form-assignments/by-type/{taskTypeLevelId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Pfad | string | – |
taskTypeLevelIdPflicht | Pfad | string | – |
Antworten
- 200Assignments returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/task-type-form-assignments/by-type/{taskTypeLevelId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"