Forms

add form

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

Request Body

NameTypeDescription

type

String

Form type

parent_id

String

The user's parent identifier

hide_time

String

Set True to hide the time and Flase to make the time visible

color

String

Form color

hide_location

String

Set True to hide the location and Flase to make the location visible

updated

String

require_approval

String

Set True to require form approval and Flase to not

targeted_survey

String

Set True to enable targeted survey and false to disable targeted survey

disabled

Boolean

Set True to disable the form and false to enable the form

everyone_can_create

String

Set True to allow everyone to create form and False to not

description

String

Form description

name

String

Form name

hide_author

Boolean

Set True to hide the author and Flase to make the author visible

{
    "id": 11,
    "url": "http://localhost:8000/api/v3/forms/11",
    "parent_id": null,
    "name": "Test Form",
    "description": "Testing form",
    "color": null,
    "type": "report",
    "disabled": false,
    "created": "2022-11-03T11:24:37+00:00",
    "updated": null,
    "hide_author": false,
    "hide_time": false,
    "hide_location": false,
    "require_approval": false,
    "everyone_can_create": true,
    "targeted_survey": false,
    "can_create": [],
    "tags": [],
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}

add form

PUT https://ushahididocs.api.ushahidi.io/api/v3/forms/9

Request Body

NameTypeDescription

type

String

Form type

parent_id

String

The user's parent identifier

hide_time

String

Set True to hide the time and Flase to make the time visible

color

String

Form color

hide_location

String

Set True to hide the location and Flase to make the location visible

updated

String

require_approval

String

Set True to require form approval and Flase to not

targeted_survey

String

Set True to enable targeted survey and false to disable targeted survey

disabled

Boolean

Set True to disable the form and false to enable the form

everyone_can_create

String

Set True to allow everyone to create form and False to not

description

String

Form description

name

String

Form name

hide_author

Boolean

Set True to hide the author and Flase to make the author visible

{
    "id": 11,
    "url": "http://localhost:8000/api/v3/forms/11",
    "parent_id": null,
    "name": "Test Form",
    "description": "Testing form",
    "color": null,
    "type": "report",
    "disabled": false,
    "created": "2022-11-03T11:24:37+00:00",
    "updated": null,
    "hide_author": false,
    "hide_time": false,
    "hide_location": false,
    "require_approval": false,
    "everyone_can_create": true,
    "targeted_survey": false,
    "can_create": [],
    "tags": [],
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}