UploadExtensionRepositoryContents

 

LibraryService / UploadExtensionRepositoryContents

 

Description: Upload extension repository content, content size must be less than 2GB

URL: http://{your-server-url}/api/v1/core/libraries/contents/stream/extensions/{extensionGuid}/repositories/contents/upload

Method: POST

Token Required: True


Request Headers:
currentuserid: {switch to user id}
content-type: application/json or content-type: application/xml
token: {token}
Required Roles:

Portal Administrator( modification on the global repository)

Parameter Type Nullable Comment
Stream System.IO.Stream False Stream

Request Query Parameters:
Parameter Type Nullable Description
tags string True comma separated values, eg. tags=red,green,blue
desc string True Description
externalid string True
source string True
returnrepositorycontent bool True default value is false, set to true if would like to return repository content instead of repository object
filename string False File Name
repositoryguid System.Guid True Extension repository guid. If added repositoryguid, repositorytype and accountid are not required
repositorytype string True global or account

Example: http://{your-server-url}/api/v1/core/libraries/contents/stream/extensions/{extensionGuid}/repositories/contents/upload?tags=string&desc=string&externalid=string


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryResponse

Parameter Type Comment
Response.Repository Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Extensions.Repository return RepositoryContent object if returnrepositorycontent set as true

The following is an example response Xml body:
<LibraryResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
</LibraryResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1
}