- Omni
- Contact APIs
- NameSpace
- Address
- Bank
- Props
- Relation
- Contact
Update
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
PATCH
/contacts/{contact_id}/
Last modified:2025-04-22 07:21:30
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
contact_id
string
required
Example:
{{contact_id}}
Body Params application/json
name
string
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
namespace
string
required
status
enum<string>
required
Allowed values:
activeinactive
type
enum<string>
required
Allowed values:
individualcorporate
tags
array[string]
optional
refs
object
optional
props
array[object (Props) {3}]
required
key
string
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
value
string
required
>= 1 characters<= 500 characters
type
enum<string>
required
Allowed values:
filenumbertextboolean
rm_id
string
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
branch_id
string
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
id
string
required
>= 8 characters<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
created_at
string <date-time>
required
created_by
string
required
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
updated_at
string <date-time>
optional
updated_by
string | null
optional
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
tenant_id
string
required
<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
Example
{
"tags": [
"9uJPe0RjSZ",
"RIPx3gSDNzV",
"ZdZ- gtkSZTBZeO6m"
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://preprod.api.crego.io/contacts/{{contact_id}}/' \
--header 'Content-Type: application/json' \
--data-raw '{
"tags": [
"9uJPe0RjSZ",
"RIPx3gSDNzV",
"ZdZ- gtkSZTBZeO6m"
]
}'
Responses
🟢201Created
application/json
Body
name
string
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
namespace
string
required
status
enum<string>
required
Allowed values:
activeinactive
type
enum<string>
required
Allowed values:
individualcorporate
tags
array[string]
optional
refs
object
optional
props
array[object (Props) {3}]
required
key
string
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
value
string
required
>= 1 characters<= 500 characters
type
enum<string>
required
Allowed values:
filenumbertextboolean
rm_id
string
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
branch_id
string
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
id
string
required
>= 8 characters<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
created_at
string <date-time>
required
created_by
string
required
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
updated_at
string <date-time>
optional
updated_by
string | null
optional
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
tenant_id
string
required
<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
Example
{"id":"01JQ8RRBB2XRSVTCG11Y6JKCKH","namespace":"Vayana","tenant_id":"23067dbc-6c62-4203-9014-7100e4ffe811","created_by":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","updated_by":"6da08401-b1f7-46ec-9013-2a9d7bc6185c","created_at":"2025-03-26T13:52:59.683345Z","updated_at":"2025-03-26T13:54:34.531893Z","name":"Sukumar","ref_id":"jijkdmkdoedmsaad","status":"active","type":"individual","tags":["9uJPe0RjSZ","RIPx3gSDNzV","ZdZ- gtkSZTBZeO6m"],"refs":{},"branch_id":"","props":["01JQ8RRB3HN71YQWJK8QRWG80K"]}