Organisations
Read where your publishes go
The organisations that claim the account's publishes, its default organisation, and where a publish that names no organisation goes now.
GET
/user/publishingTL;DR
| Question | Answer |
|---|---|
| What does it do? | Read where your publishes go. |
| What does it take? | Nothing. |
| What does it return? | Status 200 with a body of type UserPublishing. |
| What can go wrong? | 401 not signed in; 429 too many requests. Every failure uses the one error envelope. |
What it does
The organisations that claim the account's publishes, its default organisation, and where a publish that names no organisation goes now.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Where publishes go. | UserPublishing |
| 401 | Not signed in. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
Response body
A 200 answer has the type UserPublishing.
| Field | Type | Required | Description |
|---|---|---|---|
defaultOrganization | any | yes | |
defaultOrganization.id | string | yes | |
defaultOrganization.slug | string | yes | |
defaultOrganization.name | string | yes | |
organizations | PublishingClaim[] | yes | The organisations whose Publishing setting claims the person's publishes, by name. |
organizations[].id | string | yes | |
organizations[].slug | string | yes | |
organizations[].name | string | yes | |
organizations[].policy | "organisation-default" | "organisation-required" | yes | What it enforces: its library by default, or its library always. |
organizations[].via | "member" | "domain" | yes | member when the person belongs to it; domain when it verified the domain of their address and they have not joined. |
organizations[].canPublish | boolean | yes | Whether the person may publish to its library: a member who is not a reader. |
target | PublishTarget | yes | personal, the organisation it goes to and why, choose (several claim it and none is the default), or refused. |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |