How to Fix "Please Specify a Valid Workspace" Error While Creating Source via Postman?

This topic was automatically generated from Slack. You can find the original thread here.

Hi team,

i am trying to run the curl to create source via postman, but i am getting below error. I could only able to see org id not workspace id in the API setting page

“error”: “please specify a valid workspace”

Org id and workspace id are the same thing here, can you share your request? You can blur out sensitive information, or alternatively open a support ticket with the full request data

here is the curl, Kindly check on this and revert back. removed the api_key in the below curl.

curl --location 'https://api.pipedream.com/v1/sources' \
--header 'Authorization: Bearer <api_key>' \
--header 'Content-Type: application/json' \
--header 'X-PD-Workspace-Id: o_XGInbpR' \
--data '{
    "key": "rss-new-item-in-feed",
    "name": "test-rss-new",
    "configured_props": {
        "url": "https://rss.m.pipedream.net",
        "timer": {
            "intervalSeconds": 60
        }
    }
}'

any update on the above?

I’m not sure I understand what you’re trying to do.

If you’re trying to create a source component in your user account, which is the endpoint you’re calling - Create a Source - Pipedream - the parameters are somewhat different.

If you’re trying to deploy a source via Connect, which is what the configured_props parameter suggests - Deploy trigger - Pipedream - it’s a different endpoint and also needs other parameters.