v3 Ushahidi Platform REST API Documentation
  • V3
    • Overview
    • Login & Register
    • Posts
      • Sub Posts & Translation
    • Tags
    • Configuration
    • Data provider
    • Country Code
    • Tos
    • Permissons
    • Roles
    • Users
      • User Settings
    • Saved Search
    • Collections
      • Collections Page
    • Messages
    • Exports
    • Contacts
    • HXL
    • Media
    • Verifier
    • Migration
    • Notification
    • Layer
    • Webhooks
    • Api Keys
    • Forms
      • Form Attribute
      • Form Contacts
      • Form Role
      • Form Stages
    • CSV
    • Test
  • V5
    • Overview
    • Posts
    • Surveys
    • Categories
Powered by GitBook
On this page
  1. V3
  2. Forms

Form Stages

add form stage

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

Request Body

Name
Type
Description

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

Name
Type
Description

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"
    ]
}
PreviousForm RoleNextCSV

get form stage

get
Authorizations
Responses
200
OK
application/json
404
Not Found
application/json
get
GET /api/v3/forms/4/stages/6 HTTP/1.1
Host: ushahididocs.api.ushahidi.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 4,
  "url": "http://localhost:8000/api/v3/form_stages/4",
  "form_id": 2,
  "label": "Main",
  "priority": 1,
  "type": "post",
  "required": false,
  "show_when_published": true,
  "task_is_internal_only": false,
  "allowed_privileges": [
    "read",
    "create",
    "update",
    "delete",
    "search"
  ]
}

delete form stage

delete
Authorizations
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
delete
DELETE /api/v3/forms/2/stages/4 HTTP/1.1
Host: ushahididocs.api.ushahidi.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 4,
  "url": "http://localhost:8000/api/v3/form_stages/4",
  "form_id": 2,
  "label": "Main",
  "priority": 1,
  "type": "post",
  "required": false,
  "show_when_published": true,
  "task_is_internal_only": false,
  "allowed_privileges": [
    "read",
    "create",
    "update",
    "delete",
    "search"
  ]
}
  • add form stage
  • edit form stage
  • GETget form stage
  • DELETEdelete form stage