Skip to content

Tool artifacts

Keep an installed tool's source object linked to the same Project Feed project across repeated publishes.

Endpoints

Stable identity

The workspace, provider, and external artifact ID identify one source artifact. Once created, that identity cannot move to another project. Saving a mapping again updates its name, post, file, and context. Changing the post without sending a file clears the stored file.

Lookups, lists, and saves return the stored mapping. Rely on _id, projectId, provider, externalArtifactId, displayName, postId, latestAttachmentId, context, createdBy, createdAt, and updatedAt. Other fields can appear and are not part of the API. A lookup leaves out postId and latestAttachmentId when that post or file has been deleted. A delete removes only the mapping and returns the provider, the external artifact ID, and deleted: true.

Context limits

Total size
16 KB of JSON.
Strings
Every text value, selection ID, and attribute name is 500 characters or less.
selectionIds
Up to 200 IDs.
layers
Up to 500. Each layer has string name, path, and kind fields, a boolean visible field, and an integer opacity from 0 to 255.
attributes
Up to 64 string, number, or boolean values.
Other fields
hostVersion, documentName, artifactType, sourceProvider, sourceRevision, and sourceBranch, all strings.

Preserve one source identity

  1. 1.

    Derive a stable ID

    Build externalArtifactId from stable source data, not a display name, local path, or current selection index.

  2. 2.

    Look it up before publishing

    Reuse the returned project and post mapping when it exists.

  3. 3.

    Create the first mapping with createOnly

    Set createOnly to true when concurrent publishers could race.

  4. 4.

    Update it after publishing

    Send the new post or file ID and the current source context.

  5. 5.

    Read it back

    Confirm it still points to the intended project and latest records.

Fix an artifact mapping

404 Artifact not found

Confirm the selected workspace, provider, and exact external artifact ID. A lookup never searches by display name.

404 Project not found

The project does not exist, is archived, or you cannot access it. Saving a mapping needs a project you can write to.

409 Create conflict

Another publisher created the same identity. Read the existing mapping and continue only if its project and provider match the intended source.

400 Artifact identity is already bound to another project

A source identity stays with its first project. Create a new stable external ID when the source object is intentionally forked into another project.

403 Tool provider does not match this credential

A provider-bound installed tool credential can only read or write its own provider. Use the credential issued for the publishing tool.

400 on context

Reduce the context below the limits above. The whole request body must also stay under 32 KB. Keep large source data in the source tool instead of the mapping.

Next steps

Image preview
100%