Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Metadata

PATCH/v0/catalog/metadataMetadata

Bulk patch metadata for documents, synced natively by Credal or manual API uploads

Request body

application/json
objectdocumentCatalog_DocumentMetadataPatchRequest

DocumentMetadataPatchRequest

sourcesarray of objectrequired
Show child attributes
Show array items
metadataobjectrequired

Key-value object of metadata for document. Keys will be merged with any existing values but can also be set to `null` to effectively remove

resourceIdentifiervaluerequired
Show child attributes
oneOf · 2 options
Option 1object
externalResourceIdstringrequired
resourceTypestringrequired

one of "GOOGLE_DRIVE_ITEM", "MICROSOFT_DRIVE_ITEM", "ZENDESK_TICKET", "ZENDESK_ARTICLE", "ZENDESK_GROUP", "ZENDESK_ARTICLE_SECTION", "ZENDESK_ARTICLE_CATEGORY", "CONFLUENCE_PAGE", "CONFLUENCE_SPACE", "JIRA_TICKET", "JIRA_PROJECT", "SALESFORCE_TASK", "BOX_FILE", "BOX_FOLDER", "NOTION_PAGE", "NOTION_DATABASE", "SLACK_CHANNEL", "MONGO_COLLECTION_SYNC", "UNKNOWN"

typestringrequired

Discriminator value: external-resource-id

one of "external-resource-id"

Option 2object
typestringrequired

Discriminator value: url

one of "url"

urlstringrequired
uploadAsUserEmailstringrequired
Example request
{
  "sources": [
    {
      "metadata": {
        "additionalProp1": null
      },
      "resourceIdentifier": {
        "externalResourceId": "string",
        "resourceType": "BOX_FILE",
        "type": "external-resource-id"
      }
    }
  ],
  "uploadAsUserEmail": "string"
}

Responses

200Successful response
Documentation menu