ServiceStack Home (Live)

<back to all web services

CreateOpenSourceLicense

The following routes are available for this service:
POST/freelicense/opensource
POST/CreateOpenSourceLicense
CreateOpenSourceLicense Parameters:
NameParameterData TypeRequiredDescription
LicenseNamebodystringNo
ProjectUrlbodystringNo
LicenseSpdxbodystringNo
AgreeTermsbodyboolNo
FreeLicenseResponse Parameters:
NameParameterData TypeRequiredDescription
LicenseNameformstringNo
LicenseRefformstringNo
LicenseKeyformstringNo
LicenseTypeformLicenseType?No
CreatedDateformDateTime?No
ExpiryDateformDateTime?No
ExternalRefformstringNo
ResponseStatusformResponseStatusNo
LicenseType Enum:
Free
FreeIndividual
FreeOpenSource
Indie
Business
Enterprise
TextIndie
TextBusiness
OrmLiteIndie
OrmLiteBusiness
RedisIndie
RedisBusiness
AwsIndie
AwsBusiness
Trial
Site
TextSite
RedisSite
OrmLiteSite

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /freelicense/opensource HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"licenseName":"String","projectUrl":"String","licenseSpdx":"String","agreeTerms":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"licenseName":"String","licenseRef":"String","licenseKey":"String","licenseType":"Free","createdDate":"\/Date(-62135596800000-0000)\/","expiryDate":"\/Date(-62135596800000-0000)\/","externalRef":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}