{"type":"api","title":"Edit Provider Credentials","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/744a8207-9965-344e-aed3-d3ef846a4950","info":{"title":"Others","description":"Other APIs\n- Include APIs that do not belong to other categories\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Secure Device OnBoarding - Provider Credentials"],"description":"Edit service provider credentials","operationId":"editProviderCredentials","parameters":[{"name":"accountId","in":"path","description":"Service User Account ID","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Provider Credentials","content":{"application/json":{"schema":{"required":["accountId","accountUserName","apiKey","carrierName","isDefault"],"type":"object","properties":{"acceptTermsAndConditions":{"type":"boolean","description":"Boolean value which indicates if the account user accepts account provider's terms and conditions if they exist."},"accountData":{"required":["apn","authMethod","commPlan","pdnType","ratePlan"],"type":"object","properties":{"apn":{"maxLength":2147483647,"minLength":1,"type":"string","description":"Access Point Name","example":"103334b644"},"authMethod":{"maxLength":2147483647,"minLength":1,"pattern":"(^none$|^pap$|^chap$|^pap_or_chap$)","type":"string","description":"Authentication method.","example":"pap"},"commPlan":{"maxLength":2147483647,"minLength":1,"type":"string","description":"Name of the communication plan associated with default provider.","example":"vm cp sms data shared"},"password":{"type":"string","description":"Password of the user.","example":"admin123"},"pdnType":{"maxLength":2147483647,"minLength":1,"pattern":"(^IPv4$|^IPv6$|^IPv4v6$)","type":"string","description":"Data packet protocol version","example":"IPv4"},"ratePlan":{"maxLength":2147483647,"minLength":1,"type":"string","description":"Name of the rate plan associated with default provider.","example":"vm fixed pool rp"},"user":{"type":"string","description":"User name.","example":"admin"}},"$$ref":"#/components/schemas/AccountData"},"accountId":{"type":"string","description":" ID of the account associated with user using provider service.","example":"100025578"},"accountUserName":{"maxLength":2147483647,"minLength":1,"type":"string","description":"Name of the user registered to the service.","example":"JaneDoe"},"apiKey":{"maxLength":2147483647,"minLength":1,"type":"string","description":"API key for the provider service.","example":"1d6fa2f9-5a7d-4af8-8ab5-4056f631"},"carrierName":{"maxLength":2147483647,"minLength":1,"type":"string","description":"Name of the service provider.","example":"Singtel"},"isDefault":{"type":"boolean","description":"Boolean value which indicates whether the provider is the default provider ."}},"$$ref":"#/components/schemas/ProviderAccountDetails"},"examples":{"Update Provider Credentials":{"description":"Update Provider Credentials","value":"{\n \"carrierName\": \"Singtel\",\n \"accountId\": \"100023372\",\n \"accountUserName\":\"testaa\" ,\n \"apiKey\": \"d6fa2f9-5a7d-4af8-8ab5-4056f631\",\n \"isDefault\":true,\n \"acceptTermsAndConditions\":true,\n \"accountData\":{\n \"ratePlan\": \"vm fixed pool rp\",\n \"commPlan\": \"vm cp sms data shared\",\n \"apn\": \"123456789\",\n \"pdnType\": \"IPv4\",\n \"authType\": \"pap\",\n \"user\": \"admin\",\n \"password\": \"admin123\"\n }"}}}},"required":true},"responses":{"200":{"description":"Success"},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Secure Device Onboarding-write","method":"put","path":"/v1/securedeviceonboarding/{accountId}/providercredentials"}}