Create a new promptathon
POST/promptathon
Create a new promptathon with the given parameters
Request
- application/json
Body
required
Description
Name of the promptathon
List of tags being used by this promptathon.For GET requests, this is an optional field that needs to be specified in request params.
URL
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 423
- 500
Created
- */*
- Schema
- Example (from schema)
Schema
Account Id of the creator of the promptathon
Date the promptathon was modified
Description
Unique Id of the promptathon
Name of the promptathon
Status of the promptathon
Possible values: [DRAFT, SUBMITED]
List of tags being used by this promptathon.For GET requests, this is an optional field that needs to be specified in request params.
URL
{
"createdById": 0,
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateModified": "2024-07-29T15:51:28.071Z",
"description": "string",
"id": 0,
"name": "string",
"status": "DRAFT",
"tags": [
"string"
],
"url": "string",
"variationId": 0
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Unprocessable Entity
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS, ERROR]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}