Hướng dẫn AgentFlow

replace_record

PUT/entities/{entity_id}/records/{record_id}
AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Path Parameters

entity_id*string

Entity id

Formatuuid
record_id*string

Record id

Formatuuid

Request Body

application/json

form_payload keyed by the edit form's field keys, and expected_updated_at

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "expected_updated_at": "2019-08-24T14:15:22Z"  }'
{  "body": {},  "created_at": "2019-08-24T14:15:22Z",  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "entity_id": "8161163a-f227-466f-bc01-090a01e80165",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",  "unit_id": "5becc822-b69e-4e66-a762-ad8e868dcab6",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0,  "file_counts": {    "property1": 0,    "property2": 0  },  "file_labels": {    "property1": {      "property1": "string",      "property2": "string"    },    "property2": {      "property1": "string",      "property2": "string"    }  },  "mentions": {    "property1": {      "href": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "user",      "label": "string",      "state": "ok"    },    "property2": {      "href": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "user",      "label": "string",      "state": "ok"    }  },  "ref_labels": {    "property1": {      "property1": "string",      "property2": "string"    },    "property2": {      "property1": "string",      "property2": "string"    }  },  "unit": null,  "visible_action_ids": [    "f379d2c9-fe6d-4ba6-bf32-0c26891f05a3"  ],  "unnotified": [    {      "name": "string",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"    }  ]}