For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
3 0 0 1

SEQ-case-create-organisation: Save a case: Organisation

when calling the API function on postman or C# I get an error


{

"error": "INVALID_CUSTOM_FIELD",

"cause": "Custom fields which are not defined for the group cannot be used. Available custom fields are provided in the group's case template."

}



{

"groupId": "{ {group-id}}",

"entityType": "ORGANISATION",

"providerTypes": [

"WATCHLIST"

],

"name": "Apple",

"customFields": [

{

"typeId": "{ {custom-field-1}}",

"value": "custom field 1 sample value"

},

{

"typeId": "{ {custom-field-2}}",

"value": "custom field 2 sample value"

},

{

"typeId": "{ {custom-field-3}}",

"value": "mandatory custom field sample value"

}

],

"secondaryFields": [

{

"typeId": "SFCT_6",

"value": "USA"

}

]

}




world-checkworld-check-oneerror-400
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
1.1k 3 1 2

@fadi.alsayyed


Can you remove the entire custom fields array and retry the request, copying the payload below for your reference:


{

"groupId": "{ {group-id}}",

"entityType": "ORGANISATION",

"providerTypes": [

"WATCHLIST"

],

"name": "Apple",

"secondaryFields": [

{

"typeId": "SFCT_6",

"value": "USA"

}

]

}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea