Get template body
Getting the body of the template
method: POST
url: https://ninjalender.online/client/requisite-template/get-body
Headers:
header key
header content
Content-Type:
application/json;
Authorization:
Bearer AToken;
Where AToken is the token that was received during authorization.
Request body:
Key
Type
Required
Description
params
JSON.object
+
Request parameters
params:
Key
Type
Required
Description
template_id
int
+
id of template
response:
Key
Type
Description
code
int
Response code
message
string
Message
data
JSON.array
Response data
data.body
JSON.array
The body of the template itself. In which the array key is the name of the attribute, the value is an array of parameters of the attribute
Request example:
Response example:
List of errors:
Key
Message
-99
System error! Try again later or contact us
-98
Expired token
-2000001
Invalid token
-2020101
Params is required
-2020102
id must not be blank
-2020103
Template get body is restricted
-2020104
Template not found
Last updated
Was this helpful?