アイデンティティカードを保存
Use the target server's normal authentication and an explicit exact Space ID. Requires a human actor with current write authority. With profile_id null, creates a new profile from name and aliases and attaches the card. Otherwise grows the profile's card when expected_card_revision equals its current card revision (null when it has no card): kind and summary take the new values, every list keeps its current items and adds new ones, and only remove takes items out (applied to the current card first, so a correction can name the old item and propose the new one). Growth that would exceed a list bound is refused with identity_card_full instead of dropping items. Saving a card never changes names, aliases or mention links and does not invoke a model. If the profile was created but the card write failed, the error body carries profile_id; retry with that ID instead of creating again.
リクエストボディ
application/json
TypeScript定義
TypeScriptでrequest body型を使用します。
レスポンスボディ
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/identity/cards" \ -H "Content-Type: application/json" \ -d '{ "space_id": "string", "profile_id": "string", "card": { "kind": "person", "summary": "string" } }'{ "profile": { "context": [ "string" ], "id": "string", "kind": "human", "names": [ "string" ], "revision": 0, "subject": { "id": "string", "kind": "agent_identity", "reference": "string" } }, "card": { "card_revision": 1, "content": { "kind": "person", "summary": "string", "responsibilities": [ "string" ], "topics": [ { "id": "string", "name": "string" } ], "incarnations": [ { "app": "string", "repo": "string", "role": "string" } ], "evidence": [ { "kind": "thread", "id": "string" } ] }, "updated_at": "string", "updated_by": "string" }}