Memos unofficial
PATCH/api/v1/memos/{memo}/relations

Replace a memo's reference relations

Replaces the full set of mutable REFERENCE relations on a memo. Pass the complete desired list in relations; an empty list clears REFERENCE relations, while COMMENT relations remain unchanged and cannot be set through this operation.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 2 body fields
memostringrequired
The identifier of the memo whose relations to replace.

The memo resource name and the complete list of REFERENCE relations to set.

namestringrequired
Required. The resource name of the memo. Format: memos/{memo}
relationsarray<object>required
Required. The REFERENCE relations to set for the memo. COMMENT is invalid.

2 status codes
200Returns an empty response after replacing the memo's REFERENCE relations.
defaultDefault error response
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.

Error handling

The memo path parameter identifies the memo whose relations to replace. The body must include name and relations; each relation must include memo, relatedMemo, and type, and COMMENT relations are not accepted.