- Attachments
- Batch API
- Custom Fields
- Events
- Goals
- Get goals
- Create a goal
- Delete a goal
- Get a goal
- Update a goal
- Add a collaborator to a goal
- Add a subgoal to a parent goal
- Add a project/portfolio as supporting work for a goal.
- Get parent goals from a goal
- Remove a collaborator from a goal
- Remove a subgoal from a goal
- Remove a project/portfolio as supporting work for a goal.
- Create a goal metric
- Update a goal metric
- Get subgoals from a goal
- Get supporting work from a goal
- Jobs
- Organization Exports
- Teams
- Portfolio Memberships
- Portfolios
- Get multiple portfoliosGET
- Create a portfolioPOST
- Delete a portfolioDELETE
- Get a portfolioGET
- Update a portfolioPUT
- Add a custom field to a portfolioPOST
- Add a portfolio itemPOST
- Add users to a portfolioPOST
- Get portfolio itemsGET
- Remove a custom field from a portfolioPOST
- Remove a portfolio itemPOST
- Remove users from a portfolioPOST
- Custom Field Settings
- Project Memberships
- Project Statuses
- Projects
- Get multiple projects
- Create a project
- Delete a project
- Get a project
- Update a project
- Add a custom field to a project
- Add followers to a project
- Add users to a project
- Duplicate a project
- Remove a custom field from a project
- Remove followers from a project
- Remove users from a project
- Get task count of a project
- Get projects a task is in
- Get a team's projects
- Create a project in a team
- Get all projects in a workspace
- Create a project in a workspace
- Sections
- Tasks
- Get tasks from a project
- Get tasks from a section
- Get tasks from a tag
- Get multiple tasks
- Create a task
- Delete a task
- Get a task
- Update a task
- Set dependencies for a task
- Set dependents for a task
- Add followers to a task
- Add a project to a task
- Add a tag to a task
- Get dependencies from a task
- Get dependents from a task
- Duplicate a task
- Unlink dependencies from a task
- Unlink dependents from a task
- Remove followers from a task
- Remove a project from a task
- Remove a tag from a task
- Set the parent of a task
- Get subtasks from a task
- Create a subtask
- Get tasks from a user task list
- Search tasks in a workspace
- Stories
- Tags
- Team Memberships
- Users
- Time Periods
- User Task Lists
- Workspace Memberships
- Webhooks
- Workspaces
- Typeahead
Add a custom field to a portfolio
POST
/portfolios/{portfolio_gid}/addCustomFieldSetting
Portfolios
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/portfolios//addCustomFieldSetting' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
{
"data": {}
}
Request
Path Params
portfolio_gid
string
required
Body Params application/json
data
object (AddCustomFieldSettingRequest)
optional
custom_field
string
required
Example:
14916
insert_after
string
optional
insert_before
and insert_after
parameters cannot both be specified.Example:
1331
insert_before
string
optional
insert_before
and insert_after
parameters cannot both be specified.Example:
1331
is_important
boolean
optional
Example:
true
Examples
Responses
🟢200Successfully added the custom field to the portfolio.
application/json
Body
data
object (EmptyResponse)
optional
🟠400400
🟠401401
🟠403403
🟠404404
🔴500500
Modified at 2022-09-13 02:00:31