GET /api/v1/profile/metadata/{dataModelName}
Returns the metadata for the data model object. Metadata includes the list of fields, data types and indexes available for lookup.
Syntax
- HTTP method
- GET
- Availability
- Salesforce CDP v1.0, Salesforce v51.0
- Formats
- REST
- URI
- /api/v1/profile/metadata/{dataModelName}
Request Parameters
| Field Name | Field Type | Description |
|---|---|---|
| dataModelName | string | Required. Data model object API name. Example: UnifiedIndividual__dlm |
Examples
- Request
-
1http://{TSE}.360a.salesforce.com/api/v1/profile/metadata/{dataModelName} - Response
-
1{ 2 "metadata": [ 3 { 4 "indexes": [ 5 { 6 "fields": [ 7 { 8 "name": "FirstName__c", 9 "type": "STRING" 10 } 11 ] 12 } 13 ], 14 "name": "Individual__dlm", 15 "category": "Profile", 16 "fields": [ 17 { 18 "name": "BirthDate__c", 19 "type": "DATE" 20 }, 21 { 22 "name": "FirstName__c", 23 "type": "STRING" 24 } 25 ] 26 } 27 ] 28}
HTTP Responses
| Response | Reason |
|---|---|
| 200 OK | Callback successfully verified |
| 400 Bad Request | Invalid request |
| 403 Forbidden | Failed to pass authorization. |
| 404 Not Found | Incorrect callback ID, verification key, or both. |
| 422 Unprocessable Entity | Attribute name used in fields/filter parameter does not exist. |
| 500 Server Error | Internal error |