POST /v2/deal_unqualified_reasons HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
{
"data": {
"name": "Other"
},
"meta": {
"type": "deal_unqualified_reason"
}
}
curl -v -X POST https://api.getbase.com/v2/deal_unqualified_reasons \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"data": {
"name": "Other"
},
"meta": {
"type": "deal_unqualified_reason"
}
}'
require 'restclient'
headers = {
"Accept" => "application/json",
"Content-Type" => "application/json",
"Authorization" => "Bearer $ACCESS_TOKEN"
}
body = '{
"data": {
"name": "Other"
},
"meta": {
"type": "deal_unqualified_reason"
}
}
'
response = RestClient.execute method: :post, url: "https://api.getbase.com/v2/deal_unqualified_reasons", payload: body, headers: headers
puts response
import requests
import json
payload = {
'data': {
'name': 'Other'
},
'meta': {
'type': 'deal_unqualified_reason'
}
}
response = requests.post(
url='https://api.getbase.com/v2/deal_unqualified_reasons',
headers={
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Bearer $ACCESS_TOKEN'
},
data=json.dumps(payload),
verify=True
)
print(response.text)