First-request guide for Create a custom source.
Create a custom source
Create a custom source
Overview
Creates a new custom source and returns the created resource.
Quickstart
Follow these two steps to make a request and recognize a successful response.
Make a request
curl --request POST \
--url https://uapi.demandbase.com/integration/v1/custom-sources \
--header "Authorization: Bearer $DB_API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"Salesforce CRM","description":"Accounts imported from Salesforce.","priority":50}'Read the response
{
"id": 42,
"name": "Salesforce CRM",
"description": "Accounts imported from Salesforce.",
"sourceGroup": "custom",
"priority": 50
}Request anatomy
Build the request from the method, path, parameters, and payload described below.
Parameters
This endpoint does not define additional parameters.
Request body
No fields are defined for this payload.
Response anatomy
The endpoint returns 201 for the documented success case. The newly created source.
The response schema does not enumerate fields; inspect the example response and status code.
Rules
- Use
POSTwith the path/integration/v1/custom-sources. - Required inputs: No parameters are marked required in the published schema..
- Authenticate every request with a valid Demandbase access token.
- Send the request body as
application/json.
Filters
This endpoint has no additional filters or parameters beyond its authentication requirements.
Errors
Handle non-success responses explicitly so your integration can report actionable failures.
| Status | Meaning |
|---|---|
400 | Request failed. |
401 | Request failed. |
500 | Request failed. |