> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateAPIPublication

> This operation will update the publication state of the API and optionally add a publication comment. Target Properties Property Name Property Code Re

This operation will update the publication state of the API and optionally add a publication comment. 

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Oracle API Platform Account</td><td>`FDOAP_CLOUD_ACCOUNT_CODE`</td><td>Yes</td><td>The Oracle API Platform cloud account to use for this operation.  </td></tr></tbody></table>

# Project Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Oracle API Name</td><td>`FDOAP_API_NAME`</td><td>Yes</td><td>Name of the API being managed</td></tr><tr><td>Oracle API Version</td><td>`FDOAP_API_VERSION`</td><td>Yes</td><td>Version of the API being managed</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Publication State</td><td>`FDOAP_INP_PUBLICATION_STATE`</td><td>Yes</td><td>Publication state. Either PUBLISHED or UNPUBLISHED</td></tr><tr><td>Comments</td><td>`FDOAP_INP_PUBLICATION_COMMENTS`</td><td>No</td><td>Add any comments about why the publication state is being changed</td></tr><tr><td>Error on No Portal Name</td><td>`FDOAP_INP_FAIL_ON_MISSING_PORTAL_NAME`</td><td>No</td><td>If no portal name is configured on the API should this plugin throw an error?</td></tr></tbody></table>

# Artifacts

This operation consumes artifacts that will be stored in the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
