Add imsi to sim pools

@Michael I’m trying to add imsi numbers to pool.

using /rest/o/{organization_id}/g/{group_id}/sim_pools/{profile_id} in your InControl 2 api web portal.

it’s asking me for group id and profile id , and here is data i was posting . i get INVALID_INPUT response.

{
"data": 
	{
		"pool_name": "pool_test",
		"imsi_list": [
			"xxxxxx"
		],
		"monthly_quota": 0,
		"start_day": 1,
		"remark": "",
		"notification_enabled": true,
		"alert_levels": [
			0
		],
		"email_recipients": [
			""
		],
		"email_subject": "",
		"email_content": "",
		"suspend_user_traffic": true
	}

}

what i don’t understand is

  1. why group id is required while i provide profile_id and pool_name

can u help me with this.

even while i couldn’t use below api, don’t know why it says invalid profile id

Hi,

  1. The message “invalid_profile_id” mean the profile_id:82 is not exist in your group.
    You may check the “profile_id” from the GET call to check the SIM pools profiles within your group.

    API endpoint for Get SIM pool profiles in a group:
    GET /rest/o/{organization_id}/g/{group_id}/sim_pools

  2. The API POST /rest/o/{organization_id}/g/{group_id}/sim_pools/{profile_id} is a Group Level API, so the path includes /g/{group_id}.
    As it is part of the request URL, the “group_id” is required.

    If you would like to update a profile in the Organization level, please use the Organization level API endpoint.

    API endpoint for Update SIM pool profile in an Organization
    POST /rest/o/{organization_id}/sim_pools/{profile_id}

    API endpoint for Get SIM pool profiles in an Organization
    GET /rest/o/{organization_id}/sim_pools

thanks, bonnie_lam you were right i should use org level endpoints.
i was able to do it, but i found one problem with POST /rest/o/{organization_id}/sim_pools/{profile_id}
when i tried to add imsi number, existing imsi from pool are missing. i was expecting append.

	"data": 
		{
			"pool_name": "pool_test",
			"imsi_list": [
				"xxxx"
			],
			"monthly_quota": 2048,
			"start_day": 1,
			"remark": "",
			"notification_enabled": false,
			"alert_levels": [
				0
			],
			"email_recipients": [
				""
			],
			"email_subject": "",
			"email_content": "",
			"suspend_user_traffic": true
		}
	
}

Hi,
The API POST /rest/o/{organization_id}/sim_pools/{profile_id} is for update a SIM pool profile.
If you want to add an IMSI number, please include the exist data in the “imsi_list” field.

You may get the original SIM pool profile data from the GET API.
GET /rest/o/{organization_id}/sim_pools