Download OpenAPI specification:
provider required | string (Auth.OAuthProviders) Value: "google" The OAuth2 provider to use for login. |
c required | string The callback URL of the OAuth2 login. See details |
r | string The redirect URL for login callback. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
]
Create a new unit or organization
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
type required | number Value: 1 |
slug required | string |
{- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 1,
- "slug": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
Create a new parent-child relationship between units by linking them
parentId required | string <uuid> (uuid) |
childId required | string <uuid> (uuid) |
{- "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
- "childId": "da54978f-5a21-4efd-948e-3959f61b037a"
}
{- "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
- "childId": "da54978f-5a21-4efd-948e-3959f61b037a"
}
Get a specific unit with the slug of its organization by its unique identifier
slug required | string |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
Update an existing unit or organization by its unique identifier
slug required | string |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
slug required | string |
{- "name": "string",
- "description": "string",
- "metadata": { },
- "slug": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
List all unit IDs, optionally filtered by parent organization ID
slug required | string |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
List all units, optionally filtered by parent organization ID
slug required | string |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a new unit or organization
slug required | string |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
type required | number Value: 0 |
{- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get a specific unit with the slug of its organization by its unique identifier
slug required | string |
id required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Update an existing unit or organization by its unique identifier
slug required | string |
id required | string <uuid> (uuid) |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
{- "name": "string",
- "description": "string",
- "metadata": { }
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all unit IDs, optionally filtered by parent unit ID
slug required | string |
id required | string <uuid> (uuid) |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
List all units, optionally filtered by parent unit ID
slug required | string |
id required | string <uuid> (uuid) |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "type": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a new form under a unit.
slug required | string |
unitId required | string <uuid> (uuid) |
title required | string The title of the form. |
description required | string The description of the form. |
{- "title": "string",
- "description": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List forms under a specific unit.
slug required | string |
unitId required | string <uuid> (uuid) |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a new question for a specific form.
formId required | string <uuid> (uuid) |
required required | boolean |
type required | string (Forms.QuestionTypes) Enum: "short_text" "long_text" "single_choice" "multiple_choice" "date" The current types of question |
label required | string |
description required | string |
order required | integer <int32> |
{- "required": true,
- "type": "short_text",
- "label": "string",
- "description": "string",
- "order": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all the questions of a specific form.
formId required | string <uuid> (uuid) |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Update an existing question by its unique identifier.
formId required | string <uuid> (uuid) |
questionId required | string <uuid> (uuid) |
required required | boolean |
type required | string (Forms.QuestionTypes) Enum: "short_text" "long_text" "single_choice" "multiple_choice" "date" The current types of question |
label required | string |
description required | string |
order required | integer <int32> |
{- "required": true,
- "type": "short_text",
- "label": "string",
- "description": "string",
- "order": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Update an existing form by its unique identifier.
id required | string <uuid> (uuid) |
title required | string The title of the form. |
description required | string The description of the form. |
{- "title": "string",
- "description": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get a specific form by its unique identifier.
id required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get all answers for a specific question across all form responses.
formId required | string <uuid> (uuid) |
questionId required | string <uuid> (uuid) |
[- {
- "question": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "answers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "responseId": "ed662de2-39c1-4e7d-a6bf-6980511adfaf",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "value": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
]
Submit a new response to a form.
formId required | string <uuid> (uuid) |
required | Array of objects (Responses.AnswerRequest) All answers for this form submission. |
{- "answers": [
- {
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "value": "string"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all responses for a specific form.
formId required | string <uuid> (uuid) |
{- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "responses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Get a specific response by ID.
formId required | string <uuid> (uuid) |
responseId required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "questionAnswerPairs": [
- {
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "answer": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}