Skip to main content

.update()

architect.<resource-name>.update(resourceId, resourceData);

Returns a ArchitectResource which represents your updated resource.

Parameters#

This method takes 2 parameters:

ParameterRequiredTypeDefault valueDescription
resourceIdtruestringId representing id of your resource
resourceDatatrueRecord<string, any>Data representing the resource you want to create

Response#

Successful response returns a HTTP 200 OK status and the following body:

| Type | Description |Updated resource |