{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new membership in a `goal`, `project`, `portfolio`, `custom_type`, `custom_field`, `table`, or `record`, where members can be Teams or Users.\n\nReturns the full record of the newly created membership.","properties":{"query":{"type":"object","properties":{"opt_pretty":{"type":"boolean","examples":[true],"description":"Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."}},"required":[],"additionalProperties":false},"body":{"type":"object","properties":{"data":{"$ref":"#/definitions/CreateMembershipRequest"}}}},"required":[],"additionalProperties":false,"definitions":{"CreateMembershipRequest":{"allOf":[{"$ref":"#/definitions/MembershipRequest"},{"type":"object","properties":{"member":{"description":"The gid of the user or team.","type":"string","examples":[12345]},"parent":{"description":"The gid of the `goal`, `project`, `portfolio`, `custom_type`, `custom_field`, `table`, or `record` to add the member to.","type":"string","examples":["987654"]},"role":{"description":"*Deprecated: new integrations should use access_level* The role given to the member. Optional argument, will default to `commenter` for goals and the default project role for projects. Can be `editor` or `commenter` for goals. Can be `admin`,`editor` or `commenter` for projects.","type":"string","examples":["editor"]}}}]},"MembershipRequest":{"type":"object","properties":{"access_level":{"description":"Sets the access level for the member. Goals can have access levels `viewer`, `commenter`, `editor` or `admin`. Projects can have access levels `admin`, `editor` or `commenter`. Portfolios can have access levels `admin`, `editor` or `viewer`. Custom Fields can have access levels `admin`, `editor` or `user`. Tables accept `admin`, `editor`, or `viewer` on creation. Records accept `admin`, `editor`, `commenter`, or `viewer`.","type":"string","examples":["editor"]}}}}},"name":"Create a membership","id":"asana.createmembership","example":{},"maxRequests":1,"summary":false}}