GET /api/v1/records/ record_id /notes/Access Restrictions:
Unless the user accessing the notes for this record has a verified claim on the player associated with it, access to this endpoint requires at least LIST_HELPER permissions.
Allows retrieving a list of notes associated with the specified record.
If a user is not LIST_HELPER, only notes where is_public is true will be shown.
| Header | Expected Value | Optional |
|---|---|---|
| Authorization | Pointercrate access token | true |
200 OK| Header | Value |
|---|---|
| Content-Type | application/json |
| Field | Type | Description |
|---|---|---|
| - | List[Note] | A list of the notes associated with this record |
| Status code | Error code | Description |
|---|---|---|
| 404 | 40401 | No record with the specified ID exists |
GET /api/v1/records/2/notes/
Authorization: Bearer <omitted>
Accept: application/jsonPOST /api/v1/records/ record_id /notes/Access Restrictions:
Access to this endpoint requires at least LIST_HELPER permissions.
Adds a note to the specified record.
| Header | Expected Value | Optional |
|---|---|---|
| Content-Type | application/json |
false |
| Authorization | Pointercrate access token | false |
| Field | Type | Description | Optional |
|---|---|---|---|
| content | string | The content of the new note | false |
| is_public | boolean | If this note should be visible to the record submitter | true |
201 CREATED| Header | Value |
|---|---|
| Content-Type | application/json |
| Location | The location of the newly created demon |
| ETag | unsigned 64 bit hash of the newly created note |
| Field | Type | Description |
|---|---|---|
| data | Note | The newly created record note object |
| Status code | Error code | Description |
|---|---|---|
| 404 | 40401 | No record with the specified ID exists |
| 422 | 42230 | The content field is the empty string |
POST /api/v1/records/1/notes/
Accept: application/json
Authorization: Bearer <omitted>
Content-Type: application/json
{
"content": "Maybe hacked, waiting on proof-stream"
}PATCH /api/v1/records/ record_id /notes/ note_id /Access Restrictions:
Access to this endpoint requires at least LIST_HELPER permissions if you modify your own note, or LIST_ADMINISTRATOR to modify arbitrary notes.
Modifies the specified note’s content
| Header | Expected Value | Optional |
|---|---|---|
| Content-Type | application/json |
false |
| Authorization | Pointercrate access token | false |
| Field | Type | Description | Optional |
|---|---|---|---|
| content | string | The new content of the note | true |
| is_public | boolean | If this note should be visible to the record submitter | true |
200 OK| Header | Value |
|---|---|
| Content-Type | application/json |
| Location | The location of the newly created demon |
| ETag | unsigned 64 bit hash of the note |
| Field | Type | Description |
|---|---|---|
| data | Note | The newly created record note object |
| Status code | Error code | Description |
|---|---|---|
| 404 | 40401 | No record with the specified ID exists, or no note with the specified ID exists |
| 422 | 42230 | The content field is the empty string |
POST /api/v1/records/1/notes/1/
Accept: application/json
Authorization: Bearer <omitted>
Content-Type: application/json
{
"content": "Maybe hacked, waiting on proof-stream"
}DELETE /api/v1/records/ record_id /notes/ note_id /Access Restrictions:
Access to this endpoint requires at least LIST_HELPER permissions if you delete your own note, or LIST_ADMINISTRATOR to delete arbitrary notes.
Deletes the specified note
| Header | Expected Value | Optional |
|---|---|---|
| Authorization | Pointercrate access token | false |
204 NO CONTENTNothing
| Status code | Error code | Description |
|---|---|---|
| 404 | 40401 | No record with the specified ID exists, or no note with the specified ID exists |
DELETE /api/v1/records/1/notes/1/
Accept: application/json
Authorization: Bearer <omitted>