Concepts
API documentation
Account management
Journals
Modules
Journals
Table of contents
This endpoint gets the journals of the current user.
Get the journals of the current user
This endpoint gets the journals of the current user.
This call is not paginated at the moment.
URL parameters
This endpoint does not have any parameters.
Query parameters
No query parameters are available for this endpoint.
Response attributes
The type of the resource.
The ID of the journal.
The attributes of the journal.
The name of the journal.
The slug of the journal.
The avatar of the journal.
The date and time the object was created, in Unix timestamp format.
The date and time the object was last updated, in Unix timestamp format.
The links to access the journal.
{
"data": {
"type":
"journal"
,
"id":
"663"
,
"attributes": {
"name":
"Dunder Mifflin"
,
"slug":
"dunder-mifflin"
,
"avatar":
"data:image/svg+xml;base64,..."
,
"created_at":
1751305720
,
"updated_at":
1751305720
},
"links": {
"self":
"https://j.codingcat12.net/api/organizations/663"
}
}
}
Get a specific journal
This endpoint gets a specific journal.
URL parameters
The ID of the journal to get.
Query parameters
No query parameters are available for this endpoint.
Response attributes
The type of the resource.
The ID of the journal.
The attributes of the journal.
The name of the journal.
The slug of the journal.
The avatar of the journal.
The date and time the object was created, in Unix timestamp format.
The date and time the object was last updated, in Unix timestamp format.
The links to access the journal.
{
"data": {
"type":
"journal"
,
"id":
"663"
,
"attributes": {
"name":
"Dunder Mifflin"
,
"slug":
"dunder-mifflin"
,
"avatar":
"data:image/svg+xml;base64,..."
,
"created_at":
1751305720
,
"updated_at":
1751305720
},
"links": {
"self":
"https://j.codingcat12.net/api/organizations/663"
}
}
}
Create a journal
This endpoint creates a new journal. It will return the journal in the response. The avatar is automatically generated.
URL parameters
This endpoint does not have any parameters.
Query parameters
The name of the journal. Maximum 255 characters.
Response attributes
The object type. Always 'journal'.
The ID of the journal.
The attributes of the journal.
The name of the journal.
The slug of the journal.
The avatar of the journal.
The date and time the object was created, in Unix timestamp format.
The date and time the object was last updated, in Unix timestamp format.
The links of the journal.
The URL of the journal.
{
"data": {
"type":
"journal"
,
"id":
"663"
,
"attributes": {
"name":
"Dunder Mifflin"
,
"slug":
"dunder-mifflin"
,
"avatar":
"data:image/svg+xml;base64,..."
,
"created_at":
1751305720
,
"updated_at":
1751305720
},
"links": {
"self":
"https://j.codingcat12.net/api/organizations/663"
}
}
}
Update a journal
This endpoint updates the name of the journal. It will return the journal in the response. The avatar is automatically generated.
URL parameters
This endpoint does not have any parameters.
Query parameters
The name of the journal. Maximum 255 characters.
Response attributes
The object type. Always 'journal'.
The ID of the journal.
The attributes of the journal.
The name of the journal.
The slug of the journal.
The avatar of the journal.
The date and time the object was created, in Unix timestamp format.
The date and time the object was last updated, in Unix timestamp format.
The links of the journal.
The URL of the journal.
{
"data": {
"type":
"journal"
,
"id":
"663"
,
"attributes": {
"name":
"Dunder Mifflin"
,
"slug":
"dunder-mifflin"
,
"avatar":
"data:image/svg+xml;base64,..."
,
"created_at":
1751305720
,
"updated_at":
1751305720
},
"links": {
"self":
"https://j.codingcat12.net/api/organizations/663"
}
}
}
Delete a journal
This endpoint deletes a journal. It will return a success message in the response.
URL parameters
The ID of the journal.
Query parameters
No query parameters are available for this endpoint.
Response attributes
No response attributes are available for this endpoint.
No response body