Getting 400 Bad Request when trying to create a constituent via the API
https://api.sky.blackbaud.com/constituent/v1/constituents
Posting to the following URL with an access token returns 400 Bad Request everytime.
Headers Sent:
Content-Type = 'application/json; charset=utf-8',
Bb-Api-Subscription-Key => ‘{Subscription Key}’
Authorization => ‘Bearer {access token}’
Body Sent in the Request:
{
"first": "Test",
"last": "Test",
"email":
{
"address": "test@test.com",
"do_not_email": false,
"inactive": false,
"primary": true,
"type": "Email"
},
"address":
{
"type": "Home",
"city": "Philadelphia",
"state": "Pennsylvania"
},
"type": "Individual"
}
Am I missing something here? Looking at the error codes in the wadl file says that 400 Response would be returned if the Body is not in the correct format. But this is in the correct format, so what's happening here??
Comments
-
I found the problem, the type: “Email” was not the correct value. Used the correct value for this and is working fine now!
0
Categories
- All Categories
- New eTapestry Home Community
- New K-12 Community Home (TEST)
- New Higher Education Home Page (Test)
- New Impact Edge Community TEST
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 8 Blackbaud Community Help
- 223 bbcon®
- 1.4K Blackbaud Altru®
- 411 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 688 Blackbaud Grantmaking™
- 604 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 954 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7.1K Blackbaud Raiser's Edge NXT®
- 4K SKY Developer
- 258 ResearchPoint™
- 124 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 249 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 829 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)