Replace the current Artifact head

PUT
/v1/scopes/{scope_id}/artifacts/{family}/{artifact_id}

Commit a complete next revision when If-Match identifies the current head.

Authorization

BearerAuth
AuthorizationBearer <token>

Static bearer token used when local Server authentication is enabled.

In: header

Path Parameters

scope_id*string
Match.*\S.*
Length1 <= length <= 256
family*string

Value in

  • "memory"
  • "experience"
  • "skill"
  • "handoff"
artifact_id*string
Match^[\x21-\x7E]+$
Length1 <= length <= 128

Header Parameters

If-Match*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/scopes/string/artifacts/memory/string" \  -H "If-Match: string" \  -H "Content-Type: application/json" \  -d '{    "content": {      "entries": [        {          "kind": "string",          "text": "string"        }      ]    }  }'
{  "scope_id": "string",  "family": "memory",  "artifact_id": "string",  "revision": 1,  "content": {},  "sources": [    {      "source_type": "content",      "source_id": "string"    }  ],  "artifacts": [    {      "family": "string",      "artifact_id": "string",      "revision": 1    }  ],  "content_digest": "string"}