Skip to main content

Pin a dataview, interface, analytics view, record template or graph view to a homepage.

POST/api/v1/pinsanalytics:write

The target must be readable by the caller. Pinning for another user or a group needs Create Shared Pins.

Scopeanalytics:write
AsynchronousNo
MCP toolcreate_pin

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonPinCreateInput

Responses​

StatusDescriptionBody
201Success.application/json Pin or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Pin​

FieldTypeRequiredDescription
pin_idstringRequired
pin_metadatastring or nullRequiredFree JSON text the pin carries, or null.
pinned_atstring (date-time)Required
pinned_byUserRef or nullRequiredWho pinned it; null when that user no longer exists.
scopeobject or object or objectRequiredThe user or group the pin is shown to.
targetobject or object or object or object or object or objectRequiredThe pinned dataview, interface, analytics view, record template or graph view.
target_namestring or nullRequiredThe target's name as stored on the pin; null when the caller cannot open the target.

PinCreateInput​

FieldTypeRequiredDescription
pin_metadatastring or nullOptional
scopeobject or objectOptionalThe user or group to pin for; defaults to the caller as a user.
targetobject or object or object or object or objectRequired

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired