Create discussion
POST/flow_instances/:flowInstanceId/relationships/container_instances/:containerInstanceId/relationships/process_instances/:processInstanceId/relationships/task_instances/:taskInstanceId/artifact/discussions
The discussion can be left only in the Fill Form and Form Approval
Request
Path Parameters
The workflow instance id
The container instance id
The process instance id
The task instance id
Header Parameters
Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page
An X-API-KEY key is a token that a client provides with a X-API-SECRET when making API calls, used instead of the JWT
An X-API-SECRET key is a token that a client provides with a X-API-KEY when making API calls, used instead of the JWT
- application/vnd.api+json
Body
Array [
Array [
]
]
The id of the section instance
attributes
object
The name of the section instance
The id of the section instance after which the current section instance is placed in the form. If the section instance is first in the form instance, the value will be null
The flag that indicate that the section instance will not or will be shown in the print
The reference of the section
The date and time when the form instance was created
The date and time when the form instance was last time updated
relationships
object
field_instances
object
The instance of the field
data
object[]
The id of the field instance
attributes
object
The title of the field instance
Possible values: [checkbox
, date
, file
, html
, label
, radio
, select
, service_file
, slider
, text
, textarea
]
The system supported a few types of the fields
The reference of the field
The id of the field instance after which the current filed instance is placed in the section instance. If the field instance is first in the section instance, the value will be null
The flag that indicate that the field instance will not or will be shown in the print
The flag that indicates that the filed instance will not or will be shown in the Fill Form
The date and time when the field instance was created
The date and time when the field instance was last time updated
relationships
object
discussion_instances
object
The instance of the discussions that was left to the field instance
data
object[]
The id of the service instance file
attributes
object
The id of the author of the discussion instance
The type of the author of the discussion instance
The text of the discussion instance
The flag that show that discussion can be resolved or not
The flag that show that discussion resolved or not
The date and time when the discussion instance was created
The date and time when the discussion instance was last time updated
relationships
object
author
object
The user who leaves the discussion
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
Responses
- 200
- 401
- 404
- 500
The request was successful
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
]
data
object[]
The id of the field instance
attributes
object
The title of the field instance
Possible values: [checkbox
, date
, file
, html
, label
, radio
, select
, service_file
, slider
, text
, textarea
]
The system supported a few types of the fields
The reference of the field
The id of the field instance after which the current filed instance is placed in the section instance. If the field instance is first in the section instance, the value will be null
The flag that indicate that the field instance will not or will be shown in the print
The flag that indicates that the filed instance will not or will be shown in the Fill Form
The date and time when the field instance was created
The date and time when the field instance was last time updated
relationships
object
parameter_instances
object
The parameter instance of the field instance, like description
data
object[]
The id of the filed instance parameter instance
attributes
object
The supported attributes of the parameters for filed instance relate to the field instance type. Can be: description, help_message, required, etc
The value related to the selected attribute
option_instances
object
The option instance of the field instance, like answers to the radio field
data
object[]
The id of the filed instance option instance
attributes
object
The reference of the filed attribute property
The label of the filed instance option
The weight used to sort the properties in the option instance
data_instances
object
The data that was filled to the field instance
data
object[]
Tbe if of the grouper instance
attributes
object
The value of the data instance
The value reference of the data instance
The weight used to sort the properties in the data instance
attachment_instances
object
The instance of the attached files to the field instance type file
data
object[]
The id of the data instance
attributes
object
The name of the attached instance
The URL where placed the attached instance
service_file_instances
object
The instance of the files attached to the field instance type service_file
data
object[]
The id of the attachment instance
attributes
object
The name of the service instance file
The URL where placed the service file instance
discussion_instances
object
The instance of the discussions that was left to the field instance
data
object[]
The id of the service instance file
attributes
object
The id of the author of the discussion instance
The type of the author of the discussion instance
The text of the discussion instance
The flag that show that discussion can be resolved or not
The flag that show that discussion resolved or not
The date and time when the discussion instance was created
The date and time when the discussion instance was last time updated
relationships
object
author
object
The user who leaves the discussion
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
comment_instances
object
The instance of the comments that was left to the field instance
data
object[]
The id of the discussion instance
attributes
object
The text of the comment instance
The flag that indicate that the comment is private or public
relationships
object
author
object
The user who leaves the comment
data
object
Author it is a user who create entity
The id of the user who create entity
attributes
object
The type of the author of the discussion instance
The scope of the author of the discussion instance
The email of the author of the discussion instance
The date and time when the author of the discussion instance was archived
relationships
object
profile
object
data
object
The id of the profile registered user
attributes
object
The user first name
The user last name
The user avatar in the JPG, PNG, and max size of 5Mb
The international phone code
The phone number of the user
This field is a string and can be used as a position of the user in the company or some other information
The date and time of the user creation
The date and time when the info in the user profile was changed
representation_instance
object
The description of the how the field will be represented in the Form Approval task instance
data
object[]
The id of the comment instance
attributes
object
The title representation for a field instance in the From Approve task instance
The description representation for a field instance in the From Approve task instance
The help message representation for a field instance in the From Approve task instance
{
"data": [
{
"type": "field_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"title": "Simple Field Name",
"type": "text",
"reference": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"after": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"printable": true,
"invisible": true,
"created_at": "2016-01-01 12:00:00",
"updated_at": "2016-01-01 12:00:00"
},
"relationships": {
"parameter_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_parameter_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"attribute": "class",
"value": "red"
}
}
]
},
"option_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_option_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"reference": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"label": "Simple Label",
"weight": 0
}
}
]
},
"data_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_data_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"value": "Simple Value",
"value_reference": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"weight": 1
}
}
]
},
"attachment_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_attachment_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"name": "Simple attachment",
"url": "string"
}
}
]
},
"service_file_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_service_file_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"name": "Simple service file",
"url": "string"
}
}
]
},
"discussion_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_discussion_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"author_id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"author_type": "users",
"text": "Discussion text",
"resolvable": true,
"resolved": true,
"created_at": "2016-01-01 12:00:00",
"updated_at": "2016-01-01 12:00:00"
},
"relationships": {
"author": {
"data": {
"type": "authors",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"type": "users",
"scope": "string",
"email": "example@example.com",
"archived_at": "2016-01-01 12:00:00"
},
"relationships": {
"profile": {
"data": {
"type": "users_profile",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"avatar": "string",
"phone_code": "1",
"phone_number": "(111) 111-11-11",
"position": "string",
"created_at": "2016-01-01 12:00:00",
"updated_at": "2016-01-01 12:00:00"
}
}
}
}
}
}
}
}
]
},
"comment_instances": {
"data": [
{
"type": "form_instances_section_instances_field_instances_comment_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"text": "Comment text",
"public": true
},
"relationships": {
"author": {
"data": {
"type": "authors",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"type": "users",
"scope": "string",
"email": "example@example.com",
"archived_at": "2016-01-01 12:00:00"
},
"relationships": {
"profile": {
"data": {
"type": "users_profile",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"avatar": "string",
"phone_code": "1",
"phone_number": "(111) 111-11-11",
"position": "string",
"created_at": "2016-01-01 12:00:00",
"updated_at": "2016-01-01 12:00:00"
}
}
}
}
}
}
}
}
]
},
"representation_instance": {
"data": [
{
"type": "form_instances_section_instances_field_instances_representation_instances",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"title": "Simple title",
"description": "Simple description",
"help_message": "Simple help message"
}
}
]
}
}
}
]
}
Unauthorized exception
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 401,
"code": 0,
"title": "Unauthorized"
}
The response body of the Not Found Error
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 404,
"code": 404,
"title": "Not Found"
}
That means something has gone wrong on the server, and the server returns more specific about what the exact problem is
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The type of the error
The status of the error
The title of the error
The request body
The internal trace
{
"id": {},
"type": "errors",
"links": [
"string"
],
"status": 0,
"code": 0,
"title": "string",
"detail": "string",
"source": {},
"meta": {}
}