Form Stages

add form stage

POST https://ushahididocs.api.ushahidi.io/api/v3/forms/4/stages

Request Body

NameTypeDescription

form_id

Integer

Form identifier

task_is_internal_only

Boolean

Set form task as internal only, True for yes and Flase for no

type

String

Stage type

icon

String

Form stage Icon

priority

Integer

Stage priority

label

String

Stage label

description

String

Form stage description

show_when_published

Boolean

Set to True to show the form when published and False to not

required

Boolean

Set stage as required for True and optional for False

{
    "id": 19,
    "url": "http://localhost:8000/api/v3/form_stages/19",
    "form_id": 4,
    "label": "restricted",
    "priority": 1,
    "icon": null,
    "type": "task",
    "required": false,
    "show_when_published": false,
    "description": null,
    "task_is_internal_only": false,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}

edit form stage

PUT https://ushahididocs.api.ushahidi.io/api/v3/forms/4/stages/6

Request Body

NameTypeDescription

form_id

Integer

Form identifier

task_is_internal_only

Boolean

Set form task as internal only, True for yes and Flase for no

type

String

Stage type

icon

String

Form stage Icon

priority

Integer

Stage priority

label

String

Stage label

description

String

Form stage description

show_when_published

Boolean

Set to True to show the form when published and False to not

required

Boolean

Set stage as required for True and optional for False

{
    "id": 19,
    "url": "http://localhost:8000/api/v3/form_stages/19",
    "form_id": 4,
    "label": "restricted",
    "priority": 1,
    "icon": null,
    "type": "task",
    "required": false,
    "show_when_published": false,
    "description": null,
    "task_is_internal_only": false,
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}