Skip to content

Docs

revoke_link

Turn off a link for everyone who has it. Pass exactly one: `shareLinkId` for a review link (the review page says it was revoked; comments and verdicts already given stay) or `postKitLinkId` for a post kit link (the post itself doesn't change). Revoking twice is harmless.

Turn off a link for everyone who has it. Pass exactly one: shareLinkId for a review link (the review page says it was revoked; comments and verdicts already given stay) or postKitLinkId for a post kit link (the post itself doesn't change). Revoking twice is harmless.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "shareLinkId": {
      "format": "uuid",
      "type": "string"
    },
    "postKitLinkId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "shareLink": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "pieceId": {
          "format": "uuid",
          "type": "string"
        },
        "expiresAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "revokedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "allowSignoff": {
          "type": "boolean"
        },
        "lastUsedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "pieceId",
        "expiresAt",
        "revokedAt",
        "allowSignoff",
        "lastUsedAt",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt"
      ],
      "type": "object"
    },
    "postKitLink": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "postId": {
          "format": "uuid",
          "type": "string"
        },
        "expiresAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "revokedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastUsedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "postId",
        "expiresAt",
        "revokedAt",
        "lastUsedAt",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": true,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Revoke a link"
}