Skip to content
Connect an agent
Organisations

Choose your default organisation for publishing

The organisation that takes a publish naming none when several claim it, or none with null.

PUT/user/publishing

TL;DR

QuestionAnswer
What does it do?Choose your default organisation for publishing.
What does it take?A JSON body of type SetUserPublishingBody.
What does it return?Status 200 with a body of type UserPublishing.
What can go wrong?400 the body is not valid; 401 not signed in; 403 the account is a reader there (orgs.forbidden), or the request came from an origin that may not make changes; 404 no such organisation, or the account is not a member of it; 429 too many requests. Every failure uses the one error envelope.

What it does

The organisation that takes a publish naming none when several claim it, or none with null. The account must be a member who may publish there.

Request body

The body has the type SetUserPublishingBody.

FieldTypeRequiredDescription
defaultOrganizationstring | nullyesAn organisation's slug or id, or null for none. The person must be a member who may publish there. at least 1 character; at most 64 characters.

Responses

StatusMeaningBody
200Where publishes go now.UserPublishing
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403The account is a reader there (orgs.forbidden), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, or the account is not a member of it.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type UserPublishing.

FieldTypeRequiredDescription
defaultOrganizationanyyes
defaultOrganization.idstringyes
defaultOrganization.slugstringyes
defaultOrganization.namestringyes
organizationsPublishingClaim[]yesThe organisations whose Publishing setting claims the person's publishes, by name.
organizations[].idstringyes
organizations[].slugstringyes
organizations[].namestringyes
organizations[].policy"organisation-default" | "organisation-required"yesWhat it enforces: its library by default, or its library always.
organizations[].via"member" | "domain"yesmember when the person belongs to it; domain when it verified the domain of their address and they have not joined.
organizations[].canPublishbooleanyesWhether the person may publish to its library: a member who is not a reader.
targetPublishTargetyespersonal, the organisation it goes to and why, choose (several claim it and none is the default), or refused.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools