Create Partner

POST /api/partners 

Request
Body Parameters 


Attribute Name

Summary

Type

Required

Possible Values

type

Partner type

String 

Yes      

"is_supply" "is_demand"
namePartner nameStringYes



Sample Request 


curl -X POST \
https://api.cedato.com/api/partners \
-H 'accept: application/json' \
-H 'api-version: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'authorization: Bearer '
--data-urlencode 'type=is_demand' \
--data-urlencode 'name=Test Partner'



Sample Response


{
    "status": "OK",
    "data": {
        "partner": {
            "type": "is_demand",
            "name": "Test Partner",
            "partnerId": 2024
         }
     }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article