---
title: "On action submit callback"
method: POST
path: "/action.on_submit_callback_path_placeholder"
tags: ["Rule actions"]
---

# On action submit callback

`POST /action.on_submit_callback_path_placeholder`

## Request

- Base URL: `{siteUrl}`
- URL: `{siteUrl}/action.on_submit_callback_path_placeholder`
- Auth: none declared

_Note: The path is a placeholder. The actual path is determined by the configuration of the app component._

The form is submitted when the user chooses to create their rule. Asana will create the rule action data model object and make a signed request to the `on_submit_callback` specified in the form metadata returned from the fetch/update rule action form endpoints. Information about the created rule action should be included in the response if it was successfully created. This is the endpoint and schema for updating rule actions; app triggers (V2) will be analogous.

The request is subject to a 10-second timeout if no response is received from the app server. <br> <br> <a href="https://d3ki9tyy5l5ruj.cloudfront.net/obj/6d4527451c4c506efec463438b506fb8a2e6d73f/ac-rule-on-submit.png">
  <img src="https://d3ki9tyy5l5ruj.cloudfront.net/obj/6d4527451c4c506efec463438b506fb8a2e6d73f/ac-rule-on-submit.png" alt="App components rule on submit request flow"/>
</a>

## Request body

- ActionFormSubmissionRequest: The body of a form submission.
  - `expires_at` string: The time (in ISO 8601 date format) when the request should expire.
  - `user` string: The user GID this hook is coming from.
  - `workspace` string: The workspace GID this hook is coming from.
  - `values` object: An object that maps each FormField’s GID to its value. Refer to the `value` property on the FormField schema: [FormField-Checkbox](/reference/modal-forms#formfield-checkbox), [FormField-Date](/reference/modal-forms#formfield-date), [FormField-Datetime](/reference/modal-forms#formfield-datetime), [FormField-Dropdown](/reference/modal-forms#formfield-dropdown), [FormField-MultiLineText](/reference/modal-forms#formfield-multilinetext), [FormField-RadioButton](/reference/modal-forms#formfield-radiobutton), [FormField-RichText](/reference/modal-forms#formfield-richtext), [FormField-SingleLineText](/reference/modal-forms#formfield-singlelinetext), [FormField-StaticText](/reference/modal-forms#formfield-statictext), [FormField-Typeahead](/reference/modal-forms#formfield-typeahead)
  - `task` string: The task GID this hook is coming from.
  - `rule_name` string: The name of the rule being created
  - `action` string: The ID of an existing rule action that is being edited
  - `action_type` string: The ID of the configuration used to create the rule action.
  - `project` string: The project GID this hook is coming from.

## Response `200`

Successfully handled form submission.

## Other responses

- `400`: Something was wrong with the form data.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Server error

---

[API](https://skmtc.dev/asana/apis/app-components.md) - [All operations](https://skmtc.dev/asana/apis/app-components/llms.txt) - [OpenAPI document](https://skmtc.dev/asana/apis/app-components/revisions/bbebcce5c9f6?raw)
