Action (Create) API returning 400 Bad Request
Hello,
I am trying to use the Blackbaud API to create actions for constituents but I am getting a 400 Bad Request response.
Here is my body:
{
"constituent_id": "446513",
"author": "authorName",
"category": "Email",
"type": "Some Type",
"completed": true,
"completed_date": "2024-01-03T15:33:14.1414-07:00",
"date": "2024-01-03T15:33:14.1414-07:00",
"description": "Some Description",
"summary": "Some Summary"
}
Here is the error message:
[{
"message": "No user mapping exists for user identifier [user_identifier] and tenant [tenant_id]",
"error_name": "SecurityBusinessLogicFetchPermissionsUserMappingDoesNotExist",
"error_code": 25002,
"raw_message": "No user mapping exists for user identifier {0} and tenant {1}.",
"error_args": [user_identifier, tenant_id]
}]
I have redacted the user_identifier and tenant_id just in case of sensitive information.
The constituent ID exists in RENXT so I'm not sure what this error means. Any help or suggestion is appreciated.
Comments
-
@Kevin Li
the JSON body for action info looks fine to me.you will need to provide more info:
- How are you making the calls (power automate?)
- if power automate: are you using blackbaud connector for creating action or using blackbaud send http request or normal HTTP
- provide the full request and response that includes the api endpoint being called
0 - How are you making the calls (power automate?)
-
@Alex Wong
I am trying to make the calls through axios POSTS via Javascript, but I also tested using the “Try it” feature in the Blackbaud documentation.
The request is:
POST https://api.sky.blackbaud.com/constituent/v1/actions HTTP/1.1Content-Type: application/json
Cache-Control: no-cache
Authorization: “Auth_token”
Bb-Api-Subscription-Key: “BB_api_key”{
"constituent_id": "446513",
"author": "authorName",
"category": "Email",
"type": "Some Type",
"completed": true,
"completed_date": "2024-01-03T15:33:14.1414-07:00",
"date": "2024-01-03T15:33:14.1414-07:00",
"description": "Some Description",
"summary": "Some Summary"
}
The response is:
HTTP/1.1 400 Bad Requestcache-control: no-cache
content-length: 411
content-type: application/json; charset=utf-8
expires: -1
pragma: no-cache
[{
"message": "No user mapping exists for user identifier [user_identifier] and tenant [tenant_id]",
"error_name": "SecurityBusinessLogicFetchPermissionsUserMappingDoesNotExist",
"error_code": 25002,
"raw_message": "No user mapping exists for user identifier {0} and tenant {1}.",
"error_args": [user_identifier, tenant_id]
}]0 -
@Kevin Li
everything else looks fine to me and I tried the same and have no problem through Try It from developer.blackbaud.com.The error message suggest there is a problem with your login account to RE NXT environment. Are you a admin/supervisor user in the environment you trying to create the action on? or are you a contractor doing work for some org? Someone else will have to chrime in to help you as I am the admin for my org RE NXT environment with full right on my developer account.
0 -
@Alex Wong
You might be onto something. My account's access recently changed so that may be it. I'll ask my org about it.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) 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
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
