Update Notification Provider

Update Notification Provider
Update a notification provider

Update a notification provider for an organization. The id of the organization is fetched from CSP token

Request
URI
PATCH
https://api.app-catalog.vmware.com/v1/notification-providers/{provider_id}
COPY
Path Parameters
provider_id
Required

A string as the identifier of a notification provider


Request Body
UpdateNotificationProviderRequest of type(s) application/json
Required

Show optional properties

{
    "type": "string"
}
{
    "name": "My Email Provider",
    "enabled": true,
    "type": "string"
}
string
type
Required

Type of notification provider

Possible values are : EMAIL, SLACK, GOOGLE_CHAT,
Authentication
This operation uses the following authentication methods.
Responses
204

The notification provider has been updated

Operation doesn't return any data structure

400

An error related to the notification provider

Returns ConstraintsViolationsError of type(s) application/problem+json
This response body class contains all of the following: Error
{
    "type": "https://example.com/probs/validation-error",
    "title": "Validation error",
    "status": 400,
    "detail": "There was an error validating the request",
    "violations": [
        {
            "field": "amount",
            "message": "It should be greater than zero"
        }
    ]
}

403

The requesting user is not authorized to update the notification provider

Returns Error403 of type(s) application/problem+json
This response body class contains all of the following: Error
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

404

The requested notification provider is not found

Returns Error404 of type(s) application/problem+json
This response body class contains all of the following: Error
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

500

An internal server error object

Returns Error500 of type(s) application/problem+json
This response body class contains all of the following: Error
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

503

The server is temporarily unavailable

Returns Error503 of type(s) application/problem+json
This response body class contains all of the following: Error
{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50",
    "instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}

Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"type":"string"}'