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

# POST (/ext/unattendedsetup/quickaction)

> POST (/ext/unattendedsetup/quickaction)

Changes the script assigned to one of the front panel buttons or runs one of the front panel scripts on the target XBOX One development console.

* [URI parameters](#ID4EX)
* [Required request headers](#ID4E5)
* [Required request body](#ID4EFB)
* [Optional request body](#ID4EZB)
* [Response](#ID4EMB)

## URI parameters

| Parameter | Type | Description |
| - | - | - |
| ButtonNumber | number | Optional number of the front panel button we are dealing with. If this is not provided, this is a request to add a new custom script to the console. |
| Name | base64-encoded string | Optional string indicating the name of the script we are applying to a button. If this is not provided then the current script associated with ButtonNumber is run instead. |
| IsBuiltIn | boolean | Optional bool indicating whether or not the script we are applying is a built in script provided with the system or a custom script previously added to the console by the user. |

## Required request headers

None.

## Required request body

None.

## Optional request body

If no ButtonNumber was provided, the call requires a multi-part conforming HTTP body that contains the script file to add to the console.

## Response

If the call is successful and the request was to run the action associated with a button, the service will return a JSON object with the following members:

| Member | Type | Description |
| - | - | - |
| Output | string | The output from running the script associated with the requested button. |

If the call was to apply a script to a button or add a new custom script, there is no response body.

### HTTP status codes

The service returns one of the status codes in this section in response to a request made with this method on this resource.

| Code | Description |
| - | - |
| 200/204 | The operation was successful. |
| 4XX | Error codes. |
| 5XX | Error codes. |

## See also

##### Parent

[/ext/unattendedsetup/quickaction](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction.md)


## Related topics

- [/ext/unattendedsetup/quickaction (API contents)](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction.md)
- [GET (/ext/unattendedsetup/quickaction)](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction-get.md)
- [POST (/ext/unattendedsetup/default)](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetupdefault-post.md)
- [POST (/ext/unattendedsetup/test)](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetuptest-post.md)
- [POST (/ext/unattendedsetup/apply)](https://docs.xbox.com/reference/deviceportal/unattendedsetup/uri-extunattendedsetupapply-post.md)
