Create Generic
Accessible by
- Soulbound administrators
- Organizations
Request
POST {uri:project-events} HTTP/1.1
Version: 1
Content-Type: "application/vnd.gg.soulbound.project.event.generic+json"
Authorization: Bearer <api-key>
{
"time": {time},
// additional properties are added here
}
| Name | Type | Description |
|---|---|---|
| api-key | string | The client's API key |
| time | string | The ISO 8601 timestamp that the event took place at |
On success
HTTP/1.1 201 Created
Date: Tue, 21 May 2002 12:34:56 GMT
Location: {uri:event}
| Name | Type | Description |
|---|---|---|
| uri:event | string | The URL of the new event |
On illegal argument
- If
timeis not a valid ISO 8601 timestamp.
HTTP/1.1 400 Bad Request
Date: Tue, 21 May 2002 12:34:56 GMT
{cause}
| Name | Type | Description |
|---|---|---|
| cause | string | A user-friendly explanation of the conflict |
Permission denied
HTTP/1.1 401 Unauthorized
Date: Tue, 21 May 2002 12:34:56 GMT
WWW-Authenticate: Bearer realm="https://api.soulbound.gg/"