Forms
Create a batch of forms
API Reference
- Introduction
- Authentication
- Authorization
- Endpoints
- Me
- Announcements
- Attachments
- Awards
- Cache
- Calendars
- Categories
- Comments
- Documents
- Events
- Forms
- Groups
- Images
- Messages
- Newsfeed
- Positions
- Qualifications
- Ranks
- Records
- Roster
- Settings
- Specialties
- Statuses
- Submissions
- Tasks
- Units
- Users
Forms
Create a batch of forms
POST
/
{version}
/
categories
/
{category}
/
forms
/
batch
curl --request POST \
--url https://api.perscom.io/{version}/categories/{category}/forms/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"resources": [
{
"name": "<string>",
"slug": "<string>",
"success_message": "<string>",
"is_public": false,
"description": "<string>",
"instructions": "<string>"
}
]
}'
{
"data": [
{
"id": 123,
"submission_status_id": 123,
"name": "<string>",
"slug": "<string>",
"success_message": "<string>",
"is_public": false,
"description": "<string>",
"instructions": "<string>",
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The API version to use.
Available options:
v1
, v2
Query Parameters
Available options:
fields
, submissions
, submissions.*
, tags
Body
application/json
Response
200
application/json
OK
Supports HTML.
Supports HTML.
Supports HTML.
The date the resource was created. Stored in UTC.
The date the resource was updated. Stored in UTC.
Was this page helpful?
curl --request POST \
--url https://api.perscom.io/{version}/categories/{category}/forms/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"resources": [
{
"name": "<string>",
"slug": "<string>",
"success_message": "<string>",
"is_public": false,
"description": "<string>",
"instructions": "<string>"
}
]
}'
{
"data": [
{
"id": 123,
"submission_status_id": 123,
"name": "<string>",
"slug": "<string>",
"success_message": "<string>",
"is_public": false,
"description": "<string>",
"instructions": "<string>",
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}