Vai al contenuto principale
POST
/
api
/
v1
/
assessments
/
templates
Create assessment template
curl --request POST \
  --url https://app.aegister.com/api/v1/assessments/templates \
  --header 'Content-Type: application/json' \
  --header 'X-Aegister-Token: <api-key>' \
  --data '
{
  "name": "<string>",
  "tags": "<string>"
}
'
{
  "error": 0,
  "messages": "<array>",
  "template": 123
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Corpo

name
string
obbligatorio

Template name.

tags
string

Template tags.

Risposta

error
integer

Any value different from 0 indicates an error.
More details can be found in messages.

Intervallo richiesto: 0 <= x <= 0
Esempio:

0

messages
array

If error is 1, contains zero or more details on the error.

Esempio:
[]
template
integer

ID of the newly created template.