Use a Get request to get the outcome_groups(ID's) for the account. I don't think you can assume it will be 1.
GET /api/v1/accounts/1/outcome_groups
Then use what Andy suggested:
...api/v1/accounts/*insert account ID here*/outcome_groups/*insert group ID here*/outcomes
This is an example of loading outcomes into a Course rather than to an account.
I send a csv of course ID's to:
"/api/v1/courses/sis_course_id:$courseid/outcome_groups"
I get a result like this:
id : 9439
title : NURS 116 P723 MATERNAL-NEWBORN NURSING 8B In-Person
vendor_guid :
url : /api/v1/courses/18203/outcome_groups/9439
subgroups_url : /api/v1/courses/18203/outcome_groups/9439/subgroups
outcomes_url : /api/v1/courses/18203/outcome_groups/9439/outcomes
can_edit : True
import_url : /api/v1/courses/18203/outcome_groups/9439/import
context_id : 18203
context_type : Course
description :
Then I use that to build the API call to add the outcomes to the course.
By using the outcome_url.
/api/v1/courses/18203/outcome_groups/9439/outcomes
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.