search cancel

In portal, using PAPI PUT Unable to update the Organization

book

Article ID: 238040

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

In portal, using PAPI  Unable to update the Organization.

The curl request used :

curl --location --request PUT 'https://apim-ssg.portal.domain.com:9443/developer/Organizations('\''9d2224b1-f1bb-4b1f-a698-editede956a0'\'')' \
--header 'Authorization: Bearer a6e4477a-fcba-41db-a426-9feditede764' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Status": "ENABLED","Description": "org123","AccountPlanUuid": "f04034d3-d72a-47c7-a552-43edited6217","Name": "org123","Uuid": "9d2224b1-f1bb-4b1f-a698-editede956a0"
    }'

Response Error:

{
    "error": {
        "code""ServerErrorException",
        "message": {
            "lang""en-US",
            "value""Internal Server Error"
        }
    }
}
 

 

 

Cause

Documentation typo

Environment

Release : 5.0.2

Component :

Resolution

Field 'Type' is Optional for POST request/call but not for the PUT request/call,  the documentation needs correction :

Need to use this format.

curl --location --request PUT 'https://apim-ssg.portal.domain.com:9443/developer/Organizations('\''9d2224b1-f1bb-4b1f-a698-editede956a0'\'')' \
--header 'Authorization: Bearer a6e4477a-fcba-41db-a426-9feditede764' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Status": "ENABLED","Description": "org123","AccountPlanUuid": "f04034d3-d72a-47c7-a552-43edited6217","Name": "org123","Uuid": "9d2224b1-f1bb-4b1f-a698-editede956a0","Type": "CONSUMER"
    }'

 

patch API Developer Portal Installer 5.0.2.3.tar.gz  resolves, can be found 

https://support.broadcom.com/web/ecx/support-content-notification/-/external/content/release-announcements/CA-API-Developer-Portal-Solutions--Patches/3010