Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
enum<string>
required

Kind of resource to pin or unpin: session, pull_request, project, or folder.

Available options:
session,
pull_request,
project,
folder
id
string<uuid>
required

ID of the session, pull request, project, or folder, not a separate pin ID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
placement
object

Position of a new pin relative to another pin. Omit to add it first. Ignored if the resource is already pinned; use updatePin to reorder.

Response

Create a pin

type
string
required
Allowed value: "session"
resource
object
required