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

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @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
  • @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.1

    Content-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 Request

    cache-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]
    }]

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @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.

  • @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.

Categories